import {
	util
} from "@/utils/request.js"
export const joinSubmit = function(type,data){
	util.postRequest({
		url:"v1/merchant/apply",
		data:{
			type,
			...data
		}
	}).then(res=>{
		uni.redirectTo({
			url:'/pages/my/joinBack?type=1'
		})
	}).catch(e=>{
		uni.showToast({
			title:e.msg,
			icon:'none',
			duration:2500
		})
	})
}

// export default {
// 	joinSubmit
// }